package com.lihang.system.service.impl;

import com.lihang.system.entity.ExtracurricularActivities;
import com.lihang.system.mapper.ExtracurricularActivitiesMapper;
import com.lihang.system.service.IExtracurricularActivitiesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lihang
 * @since 2023-05-13
 */
@Service
public class ExtracurricularActivitiesServiceImpl extends ServiceImpl<ExtracurricularActivitiesMapper, ExtracurricularActivities> implements IExtracurricularActivitiesService {
    @Autowired
    private ExtracurricularActivitiesMapper extracurricularActivitiesMapper;
    @Override
    public List<ExtracurricularActivities> queryExtracurricularActivities(Integer stuId) {
        List<ExtracurricularActivities> extracurricularActivities = extracurricularActivitiesMapper.queryExtracurricularActivities(stuId);
        return extracurricularActivities;
    }
}
